package com.xinhua.erp.repo;

import com.xinhua.erp.pojo.Supplier;
import org.springframework.data.domain.Page;
import org.springframework.data.domain.Pageable;
import org.springframework.data.jpa.repository.JpaRepository;
import org.springframework.data.jpa.repository.JpaSpecificationExecutor;
import java.util.List;


public interface SupplierRepo extends JpaRepository<Supplier,Long> , JpaSpecificationExecutor<Supplier> {

    Page<Supplier> findAllByType(String type, Pageable pageable);

    List<Supplier> findAllByType(String type);


}
